package com.zzxx.service;

import com.zzxx.domain.Role;
import com.zzxx.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserInfoService extends UserDetailsService {
    List<UserInfo> findAll(int pageNum, int pageSize);

    UserInfo findByUid(String uid);

    void insert(UserInfo userInfo);

    List<Role> findOtherRolesById(String id);

    void addRole(String[] ids, String userId);
}
